TEAM_BUILDER = 1
TEAM_ADMIN = 2
TEAM_DEAD = 3
team.SetUp(TEAM_BUILDER, "Builder", Color(255, 0, 0, 255)) -- TEAM RED, It appear in scores
team.SetUp(TEAM_ADMIN, "Admins", Color(0, 0, 255, 255)) -- TEAM BLUE, It appear in scores
team.SetUp(TEAM_DEAD, "Spectator", Color(255, 255, 0)) -- They're dead, so they're spectating.

/*---------------------------------------------------------
   Needed Information
---------------------------------------------------------*/

GM.Name 	= "CBuild"
GM.Author 	= "Cash"
GM.Email 	= ""
GM.Website 	= "http://www.facepunch.com/member.php?310692-uberpwns"

/*---------------------------------------------------------
   Friendly Fire: Default is OFF.
---------------------------------------------------------*/

function GM:PlayerShouldTakeDamage( ply, attacker )
	if attacker:IsPlayer() then
		if ply:Team() == attacker:Team() and attacker != ply then
			return false -- Stopping builders killing other builders.
		else -- If not team is their team
			return true -- Then let them kill them. Not wise, since they're admin :)
		end
	else -- Else if killer is an NPC
		return true -- Then let the npc kill them.
	end
end -- End the function.

/*---------------------------------------------------------
   Showing timeleft until we change to a new map.
---------------------------------------------------------*/

function DrawHud() -- Starting the function
  	draw.WordBox( 10, ScrW() - 100, ScrH() - 150, "Timeleft: " .. GetGlobalString("MapRotateCountDownFormat"), "Default",Color(0,0,0,100), Color(255,255,255,255)) -- Where on screen should this go, text that says 'Timeleft' and the colors of it.
end -- Ending the function.
hook.Add("HUDPaint", "HUD_TEST2", DrawHud) -- Adding the hook (duh)

-- That's it.